<?php
$str="abcdefghijkmnpqrstuvwxyz0123456789ABCDEFGHIGKLMNPQRSTUVWXYZ";
$codeLen=´5´;
class yz{
	public function yz(){
		
	}
}
function str_rand($str,$codeLen){
 $rand="";
 for($i=0; $i<$codeLen-1; $i ){
  $rand .= $str[mt_rand(0, strlen($str)-1)]; 
 }
 return $rand;
}
$code=str_rand($str,$codeLen);
echo $code; 
?>